<?php if(!defined('IN_UCHOME')) exit('Access Denied'); ?><?php if(empty($_SGLOBAL['inajax'])) { ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=<?=$_SC['charset']?>" />
<title><?php if($_TPL['titles']) { ?><?php if(is_array($_TPL['titles'])) { foreach($_TPL['titles'] as $value) { ?><?php if($value) { ?><?=$value?> - <?php } ?><?php } } ?><?php } ?><?php if($space) { ?><?=$space['username']?> - <?php } ?><?=$_SCONFIG['sitename']?> - Powered by UCenter Home</title>
<script language="javascript" type="text/javascript" src="source/script_common.js"></script>
<script language="javascript" type="text/javascript" src="source/script_menu.js"></script>
<script language="javascript" type="text/javascript" src="source/script_ajax.js"></script>
<style type="text/css">
@import url(template/<?=$_SC['template']?>/common.css);
<?php if(!empty($space['theme'])) { ?>
@import url(theme/<?=$space['theme']?>/style.css);
<?php } ?>
<?php if(!empty($space['css'])) { ?>
<?=$space['css']?>
<?php } ?>
</style>
<?php if($space['uid']) { ?>
<link rel="alternate" type="application/rss+xml" href="rss.php?uid=<?=$space['uid']?>" title="<?=$space['username']?>" />
<?php } ?>
<link rel="edituri" type="application/rsd+xml" title="rsd" href="xmlrpc.php?rsd=1" />
</head>
<body>
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div id="wrap">
<div id="header">
<h2><a href="index.php"><img src="<?=$_SCONFIG['sitelogo']?>" alt="<?=$_SCONFIG['sitename']?>" /></a></h2>
<?php if($_SGLOBAL['supe_uid']) { ?>
<ul id="menu">
<li><a href="space.php?do=home">首页</a><?php if($space['self'] && $space['credit']<10) { ?><a href="space.php?do=home&view=guide" class="edit">向导</a><?php } ?></li>
<li><a href="space.php">个人主页</a></li>
<li><a href="space.php?do=friend">好友</a><a href="javascript:;" onclick="openSub(this,'friend');" class="drop">&nbsp;</a></li>
<li><a href="network.php">随便看看</a><?php if(empty($_SCONFIG['showall'])) { ?><a href="space.php?do=home&view=all" class="edit">近况</a><?php } ?></li>
<li><a href="space.php?do=pm"><span id="span_newpm">私信</span><?php if(!empty($_SGLOBAL['member']['newpm'])) { ?><script>newpm();</script><?php } ?></a><a href="javascript:;" onclick="openSub(this,'pm');" class="drop">&nbsp;</a></li>
</ul>
<div id="op">
<a href="cp.php">设置</a><span class="pipe">|</span>
<a href="cp.php?ac=privacy">策略</a><span class="pipe">|</span>
<?php if($space['self'] && $space['credit']>=10) { ?><a href="space.php?do=home&view=guide">向导</a><span class="pipe">|</span><?php } ?>
<a href="cp.php?ac=common&op=logout">退出</a>
</div>
<?php } else { ?>
<div id="op">
<a href="index.php">首页</a><span class="pipe">|</span>
<a href="space.php">我的空间</a><span class="pipe">|</span>
<a href="help.php">帮助</a>
</div>
<?php } ?>
</div>
<div id="submenu">
<div id="subfriend" class="submenu">
<ul>
<li><a href="space.php?do=friend">好友列表</a></li>
<li><a href="space.php?do=friend&view=visitor">我的访客</a></li>
<li><a href="space.php?do=friend&view=trace">我的足迹</a></li>
<li><a href="space.php?do=friend&view=online">在线用户</a></li>
<li class="line"><a href="cp.php?ac=friend&op=find">寻找好友</a></li>
<li><a href="cp.php?ac=invite">邀请好友</a></li>
</ul>
</div>
<div id="subpm" class="submenu">
<ul>
<li><a href="space.php?do=pm">查看未读</a></li>
<li><a href="space.php?do=pm&view=inbox">收件箱</a></li>
<li><a href="space.php?do=pm&view=outbox">发件箱</a></li>
<li><a href="space.php?do=notice">通知</a></li>
<li class="line"><a href="cp.php?ac=pm">发送私信</a></li>
</ul>
</div>
</div>
<div id="content" class="s_clear">
<div id="side">
<?php if($_SGLOBAL['supe_uid']) { ?>
<ul id="app" class="app_list">
<li class="app-doing"><a href="space.php?do=doing">迷你博客</a></li>
<li class="app-blog"><a href="space.php?do=blog">日志</a><em><a href="cp.php?ac=blog">发表</a></em></li>
<li class="app-photo"><a href="space.php?do=album">相册</a><em><a href="cp.php?ac=upload">上传</a></em></li>
<li class="app-mtag"><a href="space.php?do=thread">话题</a><em><a href="cp.php?ac=thread">发起</a></em></li>
<li class="app-share"><a href="space.php?do=share">分享</a></li>

<?php if(is_array($_SGLOBAL['app'])) { foreach($_SGLOBAL['app'] as $key => $value) { ?>
<?php if($key != UC_APPID && $value['open']) { ?>
<li class="app-<?=$value['type']?>"><a href="space.php?do=app&appid=<?=$key?>" title="<?=$value['name']?>"><?=$value['name']?></a></li>
<?php } ?>
<?php } } ?>
</ul>
<?php } else { ?>
<?php if(empty($space['theme']) && empty($space['css'])) { ?>
<?php if(empty($_SGLOBAL['nologinform'])) { ?>
<form id="loginform" name="loginform" action="do.php?ac=login&ref" method="post">
<div style="padding: 10px;">
<p class="gray"><label for="username">用户名：</label></p>
<p><input type="text" name="username" id="username" class="t_input" value="<?=$membername?>" size="15" style="width: 100px;" /></p>
<p class="gray"><label for="password">密　码：</label></p>
<p><input type="password" name="password" id="password" class="t_input" size="15" style="width: 100px;" /></p>
<p><input type="checkbox" id="cookietime" name="cookietime" value="315360000" checked /> <label for="cookietime">下次自动登录</label></p>
<p style="padding-top: 4px;">
<input type="hidden" name="refer" value="space.php?do=home" />
<input type="submit" id="loginsubmit" name="loginsubmit" value="登录" class="submit" style="padding: 0; width: 50px;" />
<a href="do.php?ac=lostpasswd">找回密码</a>
</p>
</div>
</form>
<?php } ?>
<ul class="sidelink">
<li><a href="do.php?ac=register"><strong>注册</strong>期待您的入住</a></li>
<li><a href="help.php"><strong>页面介绍</strong>了解一下您的家</a></li>
<?php if($_SCONFIG['networkpublic']) { ?><li><a href="network.php"><strong>随便看看</strong>看看大家在做什么</a></li><?php } ?>
</ul>
<?php } ?>
<?php } ?>

<?php if(empty($space['theme']) && empty($space['css'])) { ?>
<?php adshow('leftside'); ?><!-- 左侧栏广告-->
<?php } ?>
</div>
<div id="mainarea">
<?php } else { ?>
<?php obclean();
	@header("Expires: -1");
	@header("Cache-Control: no-store, private, post-check=0, pre-check=0, max-age=0", FALSE);
	@header("Pragma: no-cache");
	@header("Content-type: application/xml; charset=$_SC[charset]");
	echo '<'."?xml version=\"1.0\" encoding=\"$_SC[charset]\"?>\n";
	echo "<root><![CDATA["; ?>
<?php } ?>

<div class="i_header">
<span>
<a href="do.php?ac=ajax&op=credit&uid=<?=$space['uid']?>" id="a_space_view" onclick="ajaxmenu(event, this.id, 99999)"><?=$space['creditstar']?></a>
</span>
<h1><?=$space['username']?> <em><?=$space['spacename']?><?php if($space['viewnum']) { ?> (已有 <?=$space['viewnum']?> 次访问)<?php } ?></em></h1>
</div>

<div class="r_content">
<div id="i_narrow" class="narrow">
<div id="space_avatar"><img src="<?php echo avatar($space[uid],big); ?>" alt="<?=$space['username']?>" /></div>
<div id="space_action" class="box">
<ul class="line_list blocklink">
<?php if($space['self']) { ?>
<li><a href="cp.php?ac=profile">编辑我的资料</a></li>
<?php } else { ?>
<li><a href="cp.php?ac=pm&uid=<?=$space['uid']?>" id="a_pm" onclick="ajaxmenu(event, this.id, 99999, '', -1)">发短消息</a></li>
<li><a href="cp.php?ac=poke&op=send&uid=<?=$space['uid']?>" id="a_poke" onclick="ajaxmenu(event, this.id, 99999, '', -1)">打招呼</a></li>
<?php if(!$space['isfriend']) { ?>
<li><a href="cp.php?ac=friend&op=add&uid=<?=$space['uid']?>" id="a_friend" onclick="ajaxmenu(event, this.id, 99999, '', -1)">加为好友</a></li>
<?php } ?>
<?php } ?>

<?php if(is_array($applist)) { foreach($applist as $value) { ?>
<li><a href="<?=$value['url']?>" target="_blank" title="活动次数：<?=$value['num']?>，最后活动时间：<?php echo sgmdate('m-d H:i',$value[updatetime],1); ?>">我的<?=$value['appname']?>(<?=$value['num']?>)</a></li>
<?php } } ?>

</ul>
<?php if($isonline) { ?>
<p class="online"><a href="space.php?do=friend&view=online">在线(<?=$isonline?>)</a></p>
<?php } ?>
</div>
<div id="space_appicon" class="box">
<ul class="s_clear">
<li class="app-doing"><a href="space.php?uid=<?=$space['uid']?>&do=doing&view=me" title="迷你博客">迷你博客</a></li>
<li class="app-blog"><a href="space.php?uid=<?=$space['uid']?>&do=blog&view=me" title="日志">日志</a></li>
<li class="app-photo"><a href="space.php?uid=<?=$space['uid']?>&do=album&view=me" title="相册">相册</a></li>
<li class="app-share"><a href="space.php?uid=<?=$space['uid']?>&do=share&view=me" title="分享">分享</a></li>
<li class="app-thread"><a href="space.php?uid=<?=$space['uid']?>&do=thread&view=me" title="话题">话题</a></li>
</ul>
</div>

<?php if($visitorlist) { ?>
<div id="space_friend" class="box">
<h3>访客</h3>
<div class="box_action">
<p>最新访客</p>
<p class="action"><a href="space.php?uid=<?=$space['uid']?>&do=friend&view=visitor">全部</a></p>
</div>
<ul class="avatar_list">
<?php if(is_array($visitorlist)) { foreach($visitorlist as $value) { ?>
<li><a href="space.php?uid=<?=$value['vuid']?>"><img src="<?php echo avatar($value[vuid],small); ?>" alt="访问时间：<?php echo sgmdate('m-d H:i',$value[dateline],1); ?>" /></a><p><a href="space.php?uid=<?=$value['vuid']?>"><?=$value['vusername']?></a></p></li>
<?php } } ?>
</ul>
</div>
<?php } ?>

<div id="space_friend" class="box">
<?php if($friendlist) { ?>
<h3>好友</h3>
<div class="box_action">
<p><?=$space['friendnum']?> 个好友</p>
<p class="action"><a href="space.php?uid=<?=$space['uid']?>&do=friend&view=me">全部</a></p>
</div>
<div id="ajaxtradelist"></div>
<ul class="avatar_list">
<?php if(is_array($friendlist)) { foreach($friendlist as $value) { ?>
<li><a href="space.php?uid=<?=$value['fuid']?>"><img src="<?php echo avatar($value[fuid],small); ?>" alt="<?=$value['fusername']?>" /></a><p><a href="space.php?uid=<?=$value['fuid']?>"><?=$value['fusername']?></a></p></li>
<?php } } ?>
</ul>
<?php } elseif($space['self']) { ?>
<h3>这是一个好友网络</h3>
<div class="box_content">
<p><a href="cp.php?ac=friend&op=find">把你的好友加入进来</a><br>你可以非常方便的跟踪好友动态<br>与好友分享自己的点点滴滴。</p>
</div>
<?php } ?>
</div>

<?php if($doinglist) { ?>
<div id="space_doing" class="box">
<h3>迷你博客</h3>
<div class="box_action">
<p>最新迷你博客</p>
<p class="action"><a href="space.php?uid=<?=$space['uid']?>&do=doing&view=me">全部</a></p>
</div>		
<ul class="post_list line_list" id="doing_ul">
<?php if(is_array($doinglist)) { foreach($doinglist as $value) { ?>
<li><?=$value['message']?> <span class="time"><?php echo sgmdate('m-d H:i',$value[dateline],1); ?></span></li>
<?php } } ?>
</ul>
</div>
<?php } ?>

<?php if($threadlist) { ?>
<div id="space_thread" class="box">
<h3>话题</h3>
<div class="box_action">
<p>最新话题</p>
<p class="action"><a href="space.php?uid=<?=$space['uid']?>&do=thread&view=me">全部</a></p>
</div>
<ul class="post_list line_list">
<?php if(is_array($threadlist)) { foreach($threadlist as $value) { ?>
<li><a href="space.php?uid=<?=$value['uid']?>&do=thread&id=<?=$value['tid']?>"><?=$value['subject']?></a> <span class="time"><?php echo sgmdate('m-d H:i',$value[dateline],1); ?></span>
</li>
<?php } } ?>
</ul>
</div>
<?php } ?>

<?php if($sharelist) { ?>
<div id="space_share" class="box">
<h3>分享</h3>
<div class="box_action">
<p>最新分享</p>
<p class="action"><a href="space.php?uid=<?=$space['uid']?>&do=share&view=me">全部</a></p>
</div>
<ul class="post_list line_list">
<?php if(is_array($sharelist)) { foreach($sharelist as $value) { ?>
<li><?php if($value['image']) { ?><a href="<?=$value['image_link']?>"><img src="<?=$value['image']?>" width="70" align="left" style="margin-right:5px;margin-bottom:5px;"></a><?php } ?> <?=$value['body_template']?></li>
<?php } } ?>
</ul>
</div>
<?php } ?>

</div>
<div class="wide">
<div id="space_basicinfo" class="box">
<div class="box_content">
<table cellspacing="0" cellpadding="0" class="infotable">
<?php if($space['showprofile']) { ?>
<?php if($space['sex']) { ?>
<tr>
<th>性别：</th>
<td><?=$space['sex']?></td>
</tr>
<?php } ?>
<?php if($space['birthday']) { ?>
<tr>
<th>生日：</th>
<td><?=$space['birthday']?></td>
</tr>
<?php } ?>
<?php if($space['marry']) { ?>
<tr>
<th>婚恋：</th>
<td><?=$space['marry']?></td>
</tr>
<?php } ?>
<?php if($space['reside']) { ?>
<tr>
<th>居住：</th>
<td><?=$space['reside']?></td>
</tr>
<?php } ?>
<?php if($space['birth']) { ?>
<tr>
<th>家乡：</th>
<td><?=$space['birth']?></td>
</tr>
<?php } ?>
<?php if($space['email']) { ?>
<tr>
<th>邮箱：</th>
<td><?=$space['email']?></td>
</tr>
<?php } ?>
<?php if($space['qq']) { ?>
<tr>
<th>QQ：</th>
<td><?=$space['qq']?></td>
</tr>
<?php } ?>
<?php if($space['msn']) { ?>
<tr>
<th>MSN：</th>
<td><?=$space['msn']?></td>
</tr>
<?php } ?>

<?php if(is_array($fields)) { foreach($fields as $fieldid => $value) { ?>
<?php if($space["field_$fieldid"] && empty($value['invisible'])) { ?>
<?php $fieldvalue = $space["field_$fieldid"]; $urlvalue = rawurlencode($fieldvalue); ?>
<tr>
<th><?=$value['title']?>：</th>
<td><?php if($value['allowsearch']) { ?>
<a href="network.php?ac=space&field_<?=$fieldid?>=<?=$urlvalue?>&searchmode=1"><?=$fieldvalue?></a>
<?php } else { ?><?=$fieldvalue?><?php } ?></td>
</tr>
<?php } ?>
<?php } } ?>
<?php } ?>
<tr>
<th>网址：</th>
<td><a href="<?=$space['domainurl']?>" onclick="javascript:setCopy('<?=$space['domainurl']?>');return false;"><?=$space['domainurl']?></a></td>
</tr>
</table>
</div>
</div>

<?php if($feedlist) { ?>
<div id="space_feed" class="box feed">
<h3>个人动态</h3>
<div class="box_action">
<p>最近 <?=$feednum?> 条</p>
<p class="action"><a href="space.php?uid=<?=$space['uid']?>&do=feed&view=me">全部</a></p>
</div>
<div class="box_content">
<ul id="feed_ul">
<?php if(is_array($feedlist)) { foreach($feedlist as $value) { ?>
<li class="type_<?=$value['icon']?>" id="feed_<?=$value['feedid']?>_li">
<?php if($notime) { ?>
<a href="space.php?do=feed&icon=<?=$value['icon']?>&view=<?=$_GET['view']?>" class="type"><?=$value['icon']?></a>
<?php } else { ?>
<a href="space.php?uid=<?=$value['uid']?>&do=feed&appid=<?=$value['appid']?>&icon=<?=$value['icon']?>&view=me" class="type"><?=$value['icon']?></a>
<?php } ?>
<h6><?=$value['title_template']?><?php if(empty($notime)) { ?> <span class="time"><?php echo sgmdate('m-d H:i',$value[dateline],1); ?></span><?php } ?></h6>
<?php if($value['image_1']) { ?>
<a href="<?=$value['image_1_link']?>"><img src="<?=$value['image_1']?>" class="summaryimg" /></a>
<?php } ?>
<?php if($value['image_2']) { ?>
<a href="<?=$value['image_2_link']?>"><img src="<?=$value['image_2']?>" class="summaryimg" /></a>
<?php } ?>
<?php if($value['image_3']) { ?>
<a href="<?=$value['image_3_link']?>"><img src="<?=$value['image_3']?>" class="summaryimg" /></a>
<?php } ?>
<?php if($value['image_4']) { ?>
<a href="<?=$value['image_4_link']?>"><img src="<?=$value['image_4']?>" class="summaryimg" /></a>
<?php } ?>
<?php if($value['body_template']) { ?>
<div class="detail" <?php if($value['image_3']) { ?>style="clear: both;"<?php } ?>><?=$value['body_template']?></div>
<?php } ?>
<?php if($value['body_general']) { ?>
<div class="quote"><span class="q"><?=$value['body_general']?></span></div>
<?php } ?>
<?php if($value['uid']==$_SGLOBAL['supe_uid']) { ?>
<a href="cp.php?ac=feed&op=delete&feedid=<?=$value['feedid']?>" class="float_del" id="a_feed_<?=$value['feedid']?>" onclick="ajaxmenu(event, this.id, 99999)">删除</a>
<?php } elseif($space['self'] && empty($_GET['view'])) { ?>
<a href="cp.php?ac=feed&op=ignore&icon=<?=$value['icon']?>&uid=<?=$value['uid']?>&feedid=<?=$value['feedid']?>" id="a_feedicon_<?=$value['feedid']?>" onclick="ajaxmenu(event, this.id, 99999)" class="float_del float_block">屏蔽</a>
<?php } ?>
</li>

<?php } } ?>
</ul>
</div>
</div>
<?php } ?>

<?php if($albumlist) { ?>
<div id="space_photo" class="box">
<h3>相册</h3>
<div class="box_action">
<p>相册更新</p>
<p class="action"><a href="space.php?uid=<?=$space['uid']?>&do=album&view=me">全部</a></p>
</div>
<div class="box_content">
<table cellspacing="0" cellpadding="0" class="thumab_list">
<tr>
<?php if(is_array($albumlist)) { foreach($albumlist as $key => $value) { ?>
<td width="80" style="vertical-align: top;"><a href="space.php?uid=<?=$space['uid']?>&do=album&id=<?=$value['albumid']?>"><img src="<?=$value['pic']?>" alt="<?=$value['albumname']?>" width="70" /></a></td>
<td width="90" style="vertical-align: top;">
<h6><a href="space.php?uid=<?=$space['uid']?>&do=album&id=<?=$value['albumid']?>" title="<?=$value['albumname']?>"><?=$value['albumname']?></a></h6>
<p><?=$value['picnum']?> 张照片</p>
<p>更新于 <?php echo sgmdate('m-d',$value[dateline],1); ?></p>
</td>
<?php if($albumlist && $key%2==1) { ?></tr><tr><?php } ?>
<?php } } ?>
</tr>
</table>
</div>
</div>
<?php } ?>

<?php if($bloglist) { ?>
<div id="space_blog" class="box">
<h3>日志</h3>
<div class="box_action">
<p>最新 <?=$blognum?> 篇</p>
<p class="action"><a href="space.php?uid=<?=$space['uid']?>&do=blog&view=me">全部</a></p>
</div>
<ul class="post_list line_list">
<?php if(is_array($bloglist)) { foreach($bloglist as $value) { ?>
<li class="first">
<h6><a href="space.php?uid=<?=$space['uid']?>&do=blog&id=<?=$value['blogid']?>"><?=$value['subject']?></a></h6>
<div class="detail image_right">
<?php if($value['pic']) { ?><p class="image"><a href="space.php?uid=<?=$space['uid']?>&do=blog&id=<?=$value['blogid']?>"><img src="<?=$value['pic']?>" alt="<?=$value['subject']?>" /></a></p><?php } ?>
<?=$value['message']?>
</div>
<p class="stat"><a href="space.php?uid=<?=$space['uid']?>&do=blog&id=<?=$value['blogid']?>">阅读全文</a><span class="pipe">|</span><span class="time"><?php echo sgmdate('m-d H:i',$value[dateline],1); ?></span><span class="pipe">|</span><?php if($value['replynum']) { ?><a href="space.php?uid=<?=$space['uid']?>&do=blog&id=<?=$value['blogid']?>#comment"><?=$value['replynum']?>人评论</a><?php } else { ?><span class="pipe">没有评论</span><?php } ?></p>
</li>
<?php } } ?>
</ul>
</div>
<?php } ?>

<?php if($mtaglist) { ?>
<div id="space_mtag" class="box">
<h3>选吧</h3>
<?php if(is_array($mtaglist)) { foreach($mtaglist as $fieldid => $values) { ?>
<table cellspacing="0" cellpadding="0" class="formtable">
<tr>
<td><strong><?=$_SGLOBAL['profield'][$fieldid]['title']?></strong></td>
</tr>
<tr>
<td>
<?php $dot = ''; ?>
<?php if(is_array($values)) { foreach($values as $key => $value) { ?>
<?=$dot?><a href="space.php?do=mtag&tagid=<?=$value['tagid']?>" title="<?=$value['membernum']?>个人有同样的选择"><?=$value['tagname']?></a>
<?php $dot = '、'; ?>
<?php } } ?>
</td>
</tr>
</table>
<?php } } ?>
</div>
<?php } ?>

<div id="comment" class="box">
<h3>留言板</h3>
<div class="box_action">
<p>最新留言</p>
<p class="action"><a href="space.php?uid=<?=$space['uid']?>&do=wall&view=me">全部</a></p>
</div>
<div class="space_wall_post">
<form action="cp.php?ac=comment" id="commentform" name="commentform" method="post">
<table cellpadding="0" cellspacing="0">
<tr>
<td><textarea name="message" id="comment_message" rows="5" cols="60" onkeydown="ctrlEnter(event, 'commentsubmit_btn');"></textarea></td>
</tr>
<tr>
<td>
<input type="hidden" name="refer" value="space.php?uid=<?=$space['uid']?>" />
<input type="hidden" name="id" value="<?=$space['uid']?>">
<input type="hidden" name="idtype" value="uid">
<input type="hidden" name="commentsubmit" value="true" />
<input type="button" id="commentsubmit_btn" name="commentsubmit_btn" class="submit" value="留言" onclick="ajaxpost('commentform', 'comment_status', 'wall_add')" />
<span id="comment_status"></span>
</td>
</tr>
</table>
</form>
</div>
<div class="box_content">
<ul class="post_list a_list" id="comment_ul">
<?php if(is_array($walllist)) { foreach($walllist as $value) { ?>
<?php if(empty($ajax_edit)) { ?><li id="comment_<?=$value['cid']?>_li"><?php } ?>
<a href="space.php?uid=<?=$value['authorid']?>"><img src="<?php echo avatar($value[authorid],small); ?>" alt="<?=$value['author']?>" class="avatar" /></a>
<div class="title">
<div class="r_option">
<?php if($value['authorid']==$_SGLOBAL['supe_uid']) { ?>
<a href="cp.php?ac=comment&op=edit&cid=<?=$value['cid']?>" id="c_<?=$value['cid']?>_edit" onclick="ajaxmenu(event, this.id, 99999, '', -1)">编辑</a>
<?php } ?>
<?php if($value['authorid']==$_SGLOBAL['supe_uid'] || $value['uid']==$_SGLOBAL['supe_uid']) { ?>
<a href="cp.php?ac=comment&op=delete&cid=<?=$value['cid']?>" id="c_<?=$value['cid']?>_delete" onclick="ajaxmenu(event, this.id, 99999)">删除</a>
<?php } ?>
<?php if($value['authorid']!=$_SGLOBAL['supe_uid'] && ($value['idtype'] != 'uid' || $space['self'])) { ?>
<a href="cp.php?ac=comment&op=reply&cid=<?=$value['cid']?>" id="c_<?=$value['cid']?>_reply" onclick="ajaxmenu(event, this.id, 99999, '', -1)">回复</a>
<?php } ?>
</div>
<a href="space.php?uid=<?=$value['authorid']?>" id="author_<?=$value['cid']?>"><?=$value['author']?></a> <span class="time"><?php echo sgmdate('Y-m-d H:i',$value[dateline],1); ?></span>
</div>
<div class="detail" id="comment_<?=$value['cid']?>"><?=$value['message']?></div>
<?php if(empty($ajax_edit)) { ?></li><?php } ?>
<?php } } ?>
</ul>
<div align="right"><a href="space.php?uid=<?=$space['uid']?>&do=wall&view=me">&raquo; 所有留言</a></div>
</div>
</div>
</div>
</div>

<div class="f_status s_clear">
<a href="javascript:;" onclick="window.scrollTo(0,0);" id="a_top" title="TOP">TOP</a>
<a href="cp.php?ac=share&type=space&id=<?=$space['uid']?>" id="a_share" onclick="ajaxmenu(event, this.id, 99999, '', -1)">分享</a>
<a href="rss.php?uid=<?=$space['uid']?>" id="a_rss" title="订阅 RSS">订阅</a>
<?php if($space['isfriend'] && !$space['self']) { ?>
<a href="cp.php?ac=friend&op=ignore&uid=<?=$space['uid']?>" id="a_ignore" onclick="ajaxmenu(event, this.id, 99999)">解除好友关系</a>
<?php } ?>
</div>

<?php if(empty($_SGLOBAL['inajax'])) { ?>
</div>
</div>

<div id="footer">
<p class="copyright" title="<?php echo debuginfo(); ?>">
<?=$_SCONFIG['sitename']?> &nbsp; <a href="mailto:<?=$_SCONFIG['adminemail']?>">联系我们</a>
<?php if($_SCONFIG['miibeian']) { ?> &nbsp;<a  href="http://www.miibeian.gov.cn" target="_blank"><?=$_SCONFIG['miibeian']?></a><?php } ?>
 &nbsp; Powered by <a  href="http://u.discuz.net" target="_blank">UCenter Home</a> <span title="<?php echo X_RELEASE; ?>"><?php echo X_VER; ?></span>
 <?php if(!empty($_SCONFIG['licensed'])) { ?><a  href="http://license.comsenz.com/?pid=7&host=<?=$_SERVER['HTTP_HOST']?>" target="_blank">Licensed</a><?php } ?>
 &copy; 2001-2008 <a  href="http://www.comsenz.com" target="_blank">Comsenz Inc.</a>
</p>
</div>
</div>
<script language="javascript" type="text/javascript" src="source/script_manage.js"></script>
<?php adshow('footer'); ?><!-- 页脚广告-->

<?php if($_SGLOBAL['supe_uid']) { ?>
<?php if(!isset($_SCOOKIE['checkpm'])) { ?>
<script type="text/javascript" src="cp.php?ac=pm&op=checknewpm&rand=<?php echo rand(0,999) ?>"></script>
<?php } ?>
<?php if(!isset($_SCOOKIE['synfriend'])) { ?>
<script type="text/javascript" src="cp.php?ac=friend&op=syn&rand=<?php echo rand(0,999) ?>"></script>
<?php } ?>
<?php } ?>
</body>
</html>
<?php } ?>
<?php ob_out(); ?><?php subtplcheck('template/default/space_index|template/default/header|template/default/space_feed_li|template/default/space_comment_li|template/default/footer', '1213891330', 'template/default/space_index'); ?>